package com.veyou.mybatis.demo.controller;

import com.veyou.mybatis.demo.service.UserService;
import com.veyou.mybatis.demo.core.entity.SssDO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wang chang
 * @ClassName DemoController
 * @Description
 * @CreateTime 2024年03月22日 17:25
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/user")
public class DemoController {


    @Resource
    private UserService userService;


    @GetMapping(name = "获取用户", value = "/get")
    public List<SssDO> testUser() {
        return userService.getUserInfo("121");
    }
}
